<?php
include_once("admin.inc.php");
$act = get_param('action');

switch($act){
case 'about':
	$cfgModel = load_model("configs");
	
	if( get_param("prop") ){
		$data = get_data();
		$rs = $cfgModel->add_configs($data);
		if( $rs>0 ){
			msg('Success','index.php?action=about');
		}else{
			msg('Failed');
		}
	}

	$ct = $cfgModel->get_configs("about");
	$smarty->assign('ct', $ct);
	$smarty->display('admin/cfg_about.html');
break;
default:
	$smarty->display('admin/index.html');
break;
}
